<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <title></title>
	<script src="http://apps.bdimg.com/libs/jquery/2.1.1/jquery.min.js"></script>
    <style type="text/css">
    <!--
    li {list-style:none; height:30px; line-height:30px;}
	.cont {padding:0 15px;}
	.left { float:left; width:10%; height:700px; border-right:1px solid #666600;}
	.right { float:left; width: 85%; height:700px;}
	.cb {clear:both;}

	table {border-collapse: collapse;border-spacing:0; border:1px solid #669900}
	table tr td { height:35px; line-height:35px; min-width:50px;border:1px solid #669900 ; padding:0 6px; }
	table tr td a { padding:0 5px;}

	.form {}
	.form li { list-style:none; height:50px; line-height:50px;}
	.form li span { display:inline-block; min-width:90px;}
	.sch { padding:5px 16px;}
	.btn_span {text-decoration:underline; cursor:pointer;}
    -->
    </style>


</head>
<body>




<div class="cont">
	<div class="left" id="menu">
		<h5>欢迎你  <?php echo $name['username']?$name['username']:"未登录"; ?>&nbsp;<span class="btn_span" onclick="loginout();return false;">退出</span></h5>
		<h4>学生管理</h4>
		<ul>
			<li><a href="<?php echo site_url('admin/addform'); ?>" >学生添加</a></li>
			<li><a href="<?php echo site_url('admin/stulist'); ?>" >学生列表</a></li>
			<li><a href="<?php echo site_url('admin/search'); ?>" >学生查找</a></li>
		</ul>
		<h4>教师管理</h4>
		<ul>
			<li><a href="<?php echo site_url('admin/addth'); ?>" >添加教师</a></li>
			<li><a href="<?php echo site_url('admin/thlist'); ?>" >教师列表</a></li>
		</ul></div>
	<div class="right">
		<!--<iframe name="iframe" src="" width="100%" height="100%"></iframe>-->
		<div class="cont" id="mcont"></div> </div>
	<div class="cb"></div></div>



<script type="text/javascript">
	<!--

		$(function(){
			$("#menu,#mcont").on("click","a",function(){
				var url=$(this).attr("href");
				getdata(url);
				return false;
			});

			$("#mcont").on("submit",function(e){
				e.preventDefault();
				var formdata = $(this).find("form").serialize();
				var url = $(this).find("form").attr("action");
					postdata(url,formdata);
			});

			function getdata(url){
				$.get(url,function(data){
					$("#mcont").html(data);
				});
			}

			function postdata(url,pdata){
				$.post(url,pdata,function(data){
					$("#mcont").html(data);
				});
			}
		});

		function loginout(){
			location.href="<?php echo site_url('admin/loginout'); ?>";
		}
	//-->
</script>



</body>
</html>